package com.ysd.resourceusestatistics.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * CardUtil
 */
public class CardUtil {
//导入
    //生成会员卡号,年月+6位随机数
    public static String getCardNo(){
        SimpleDateFormat sdf=new SimpleDateFormat("yyMM");
        String newDate = sdf.format(new Date());
        Random random = new Random();
        String res = "";
        for(int i=0;i<6;i++){
            res+=random.nextInt(10);
        }
        return newDate+res;
    }


    
}